package com.wandian.setting.mvvm.modifyphone;

import androidx.databinding.DataBindingUtil;
import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.mylib.libcore.config.RouterConfig;
import com.mylib.libcore.mvvm.BaseMVVMActivity;
import com.wandian.setting.R;
import com.wandian.setting.databinding.SetActivityModifyPhoneSuccessBinding;

/**
 * @author Administrator
 * @date 2019/12/18-14:28
 * @description  修改手机号成功
 **/
@Route(path = RouterConfig.ROUTER_ACTIVITY_SETTING_MODIFY_PHONE_SUCCESS)
public class ModifyPhoneSuccessActivity extends  BaseMVVMActivity<ModifyPhoneSuccessViewModel>  {

    private SetActivityModifyPhoneSuccessBinding dataBinding;

    @Override
    public void init(Bundle savedInstanceState) {
        dataBinding = DataBindingUtil.setContentView(this, R.layout.set_activity_modify_phone_success);
        dataBinding.setLifecycleOwner(this);
        dataBinding.bindToolBar.toolBarTvTitle.setText("修改成功");
        dataBinding.setViewModel(mViewModel);
        mViewModel.initData();
        initClink();
    }
    private void initClink(){
        dataBinding.bindToolBar.toolBarTitleLeft.setOnClickListener(v -> {
            finishhideSoftBoard();
            finish();
        });

    }

}
